package ldkxingzhe.ldkxingzhedemo.widgets;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ArrayAdapter;

import ldkxingzhe.ldkxingzhedemo.R;

/**
 * Created by Administrator on 2016/3/7.
 */
public class HorizontalListViewActivity extends AppCompatActivity{
    @SuppressWarnings("unused")
    private static String TAG = "HorizontalListView";

    private HorizontalListView horizontalListView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_horizontal_list_view);
        horizontalListView = (HorizontalListView) findViewById(R.id.hlview);
        String[] result = new String[]{
                "梁登科", "岁月", "知道", "BAT", "梁登科", "岁月", "知道", "BAT","梁登科", "岁月", "知道", "BAT","梁登科", "岁月", "知道", "BAT","泰山"
        };
        horizontalListView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, result));
    }
}
